package com.jbm.jbmsupplier.util;

import java.io.Serializable;

/**
 * Created by lyh on 2017-04-07.
 */
////@Entity
////@Table(name = "capital_acc", schema = "", catalog = "jbmcore")
////@org.hibernate.annotations.Entity(dynamicUpdate=true,dynamicInsert=true)
public class CapitalAccEntity extends ICtrl implements Serializable {
    private static final long serialVersionUID = -2087393250323494960L;
    private int caId;
    private double amount;
    private int accId;
    private String accType;
    private String caccType;
    private String aliaccount;



    ////@Id
    ////@Column(name = "ca_id")
    public int getCaId() {
        return caId;
    }

    public void setCaId(int caId) {
        this.caId = caId;
    }

    ////@Basic
    ////@Column(name = "amount")
    public double getAmount() {
        return amount;
    }

    public void setAmount(double amount) {
        this.amount = amount;
    }

    ////@Basic
    ////@Column(name = "acc_id")
    public int getAccId() {
        return accId;
    }

    public void setAccId(int accId) {
        this.accId = accId;
    }

    ////@Basic
    ////@Column(name = "acc_type")
    public String getAccType() {
        return accType;
    }

    public void setAccType(String accType) {
        this.accType = accType;
    }

    ////@Basic
    ////@Column(name = "cacc_type")
    public String getCaccType() {
        return caccType;
    }

    public void setCaccType(String caccType) {
        this.caccType = caccType;
    }

    ////@Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        CapitalAccEntity that = (CapitalAccEntity) o;

        if (accId != that.accId) return false;
        if (amount != that.amount) return false;
        if (caId != that.caId) return false;
        if (accType != null ? !accType.equals(that.accType) : that.accType != null) return false;
        if (caccType != null ? !caccType.equals(that.caccType) : that.caccType != null) return false;

        return true;
    }

    ////@Override
    public int hashCode() {
        int result = caId;

        result = 31 * result + accId;
        result = 31 * result + (accType != null ? accType.hashCode() : 0);
        result = 31 * result + (caccType != null ? caccType.hashCode() : 0);
        return result;
    }

    ////@Basic
    ////@Column(name = "aliaccount")
    public String getAliaccount() {
        return aliaccount;
    }

    public void setAliaccount(String aliaccount) {
        this.aliaccount = aliaccount;
    }
}
